package cn.edu.ahstu.acm.listener;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import org.springframework.context.ApplicationContext;
import cn.edu.ahstu.acm.context.ServerContext;
import cn.edu.ahstu.acm.support.OnlineUserSupport;

public class SessionListener implements HttpSessionListener {

	ApplicationContext ac;

	public void sessionCreated(HttpSessionEvent event) {
	}

	public void sessionDestroyed(HttpSessionEvent event) {
		OnlineUserSupport.remove(ServerContext.getCurrentUser());
	}

}
